package com.org.sc.realtimekeystone;

interface IVL53L5AidlInterface {
    //测试  调试命令  adb shell service call SCRealTimeKeyStoneService 1
    void test();
    //开启  调试命令  adb shell service call SCRealTimeKeyStoneService 2
    void openRealTimeKeyStone();
    //关闭  调试命令  adb shell service call SCRealTimeKeyStoneService 3
    void closeRealTimeKeyStone();
    //打印log 默认关闭 adb shell service call SCRealTimeKeyStoneService 4 i32 1
    void set_print_log(boolean state);


    //设置打开和关闭对焦功能 adb shell service call SCRealTimeKeyStoneService 5 i32 1
    void fc_set_af_state(boolean state);
    //获取打开和关闭对焦功能
    boolean fc_get_af_state();
    //触发一次自动对焦 adb shell service call SCRealTimeKeyStoneService 7
    void fc_do_once_af();
    //开启电机
    void fc_open_motor();
    //手动FOCUS+ (def step=1)  返回结果 true :表示卡住了限位
    boolean fc_stepFW();
    //手动FOCUS- (def step=1)  返回结果 true :表示卡住了限位
    boolean fc_stepBK();
    //关闭电机
    void fc_close_motor();
    //设置打开和关闭自动校正功能  adb shell service call SCRealTimeKeyStoneService 12 i32 1
    void fc_set_corr_state(boolean state);
    //获取打开和关闭自动校正功能
    boolean fc_get_corr_state();
    //触发一次自动校正 adb shell service call SCRealTimeKeyStoneService 14
    void fc_do_once_corr();
    //开机默认触发吗？  adb shell service call SCRealTimeKeyStoneService 15 i32 1
    void set_do_once_startup_state(boolean state);
    boolean get_do_once_startup_state();
    //晃动机器触发吗？ adb shell service call SCRealTimeKeyStoneService 17 i32 1
    void set_shake_trigger_state(boolean state);
    boolean get_shake_trigger_state();
    //数字变焦(界面缩放)
    //0: 进入功能界面
    //1：放大
    //2：缩小
    //3：离开功能界面
    //返回的是 百分比
    int fun_srceen_zoom(int type,double mpx,double hpx);
}